xl: migration: pass -t to xl migrate-receive
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 7 Jan 2014 18:23:04 +0000 (18:23 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 19 Mar 2014 13:42:13 +0000 (13:42 +0000)
commite70a980f67dd1dac3dae812ba6055f8fe742bb78
tree944559ceb9ca52b33f139e6bce84c60c534c4abb
parent01f78a81ae56220dd496a61185ba5dfae30dc2fe
xl: migration: pass -t to xl migrate-receive

If we ourselves are using cr-based overwriting for logging to stderr,
pass -t to the migration receiver so that it knows to do the same
(since its stderr is normally the pipe from sshd).

This requires, of course, that the receiver support that option.  This
is OK from a compatibility point of view because we support migration
to newer, but not necessarily to older, versions.  (If unsupported
backwards migration is still desired the use of -s "" allows the
remote invocation rune to be overridden by a command of one's choice.)

This fixes a regression introduced in 2f80ac9c0e8f, where migration
messages from the receiver would not use of the overwriting protocol.

CC: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c